package cn.jason;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @Author: Jason
 * @Date: 2022/9/19 18:53
 */

@SpringBootApplication
@MapperScan("cn.jason.mapper")
public class Application {
    public static void main(String[] args) {
        SpringApplication.run(Application.class,args);
    }

    //初始化方法start
    //@Bean(initMethod = "start",destroyMethod = "close")
    //public CuratorFramework curatorFramework(){
    //    //重试策略
    //    RetryPolicy retryPolicy = new ExponentialBackoffRetry(1000, 3);
    //    //创建客户端
    //    CuratorFramework client = CuratorFrameworkFactory.newClient("127.0.0.1:2181", retryPolicy);
    //    return client;
    //}
}
